package com.qzdsoft.erpcloud.service.com;

import java.util.List;
import java.util.Map;

import com.qzdsoft.erpcloud.domain.com.Department;
import com.qzdsoft.erpcloud.domain.sys.User;
import com.qzdsoft.erpcloud.vo.com.DepartmentInfo;
import com.qzdsoft.erpcloud.vo.com.DepartmentQueryParam;
import com.qzdsoft.vo.Page;
import com.qzdsoft.vo.Response;

public interface DepartmentService {
	
	
	Integer selectDataCount(String name,Integer companyId);
	/**
	 * 页面初始化查询
	 * @param params
	 * @param user
	 * @return
	 */
//    List<Map<String, Object>> selectData(String name, Integer companyId, Integer start, Integer pageSize);
	 List<Map<String, Object>> selectData(DepartmentQueryParam param);
	
	
	
	
//	Page<DepartmentInfo> findPage(DepartmentQueryParam params, User user);

	Department selectById(Integer departmentId);
	/**
	 * 部门编辑保存
	 * @param name
	 * @param remark
	 * @param departmentId
	 * @return
	 */
	Response editDepartment(Department department);
	/**
	 * 删除部门信息
	 * @param departmentId
	 * @return
	 */
	Response del(Integer id);
//	Response deleteDepartment(Integer departmentId);

	List<Department> getByCompanyId(Integer companyId);
	
	 List<Department> selectAll();
	 
	 Response edit(Department department);
}
